﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration.Provider;

namespace Trackr.ProviderFactory
{
	public abstract class DataProvider<T> : ProviderBase, IDataProvider<T> where T : class
	{
		// Adds a text value for a specified ID to the storage
		public abstract void UpdateTimeItem(int id, T obj);

		public abstract int AddNew(string task);

		// Gets the text associated to a specified ID
		public abstract T GetTimeItem(int id);

		public abstract T GetLatestTimeItem();

		public abstract List<T> GetTimeItems();

		public abstract string Description { get; }
		public abstract string Name { get; }
	}

}
